import request from '@/utils/request'

// 获取公开题库列表
export function getList(params) {
  return request({
    url: '/user/quBank/list/pub',
    params
  })
}
// 用户个人题库列表
export function getUserList() {
  return request({
    url: '/user/quBank/list'
  })
}
// 上传题目答案信息
export function uploadUserQuAnswer(data) {
  return request({
    url: '/user/quBank/upload/quAns',
    method: 'post',
    data
  })
}

export function getDetail(qbId) {
  return request({
    url: '/question/questionBank/' + qbId
  })
}

export function getQuList(qbId) {
  return request({
    url: '/user/quBank/qu/list?qbId=' + qbId
  })
}

export function getQuDetail(params) {
  return request({
    url: '/user/quBank/quInfo',
    params
  })
}

export function getQuOne(objId) {
  return request({
    url:'/user/quBank/objQu/' + objId,
    method:'get'
  })
}
